package tt.dz.egobus.servicemanager.vo;

import tt.dz.egobus.bean.BaseBean;

/**
 * @author Anson
 * @date 17-3-24
 * @name 系统用户
 * @since 1.0.2
 */
public class SystemUserVo implements BaseBean {

    private static final long serialVersionUID = -2399704155067246921L;

    /**
     * 管理员的id
     **/
    private String id;

    /**
     * 管理员的用户名
     **/
    private String username;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof SystemUserVo)) return false;

        SystemUserVo that = (SystemUserVo) o;

        if (getId() != null ? !getId().equals(that.getId()) : that.getId() != null) return false;
        return getUsername() != null ? getUsername().equals(that.getUsername()) : that.getUsername() == null;

    }

    @Override
    public int hashCode() {
        int result = getId() != null ? getId().hashCode() : 0;
        result = 31 * result + (getUsername() != null ? getUsername().hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "SystemUserVo{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                '}';
    }
}
